package com.zhubayi.mapper;

import com.zhubayi.entity.Great;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

/**
 * @author 祝八一
 */
@Mapper
@Repository
public interface GreatMapper {


    @Select("select * from wn_great where uid=#{uid} and vid=#{vid}")
    Great queryByUidAndVid(@Param("uid") Integer uid, @Param("vid") Integer vid);
    @Insert("insert into wn_great (id,vid,uid) values (null,#{vid},#{uid})")
    void add(@Param("uid") Integer uid, @Param("vid") Integer vid);

    @Delete("delete from wn_great where  uid=#{uid} and vid=#{vid}")
    void delete(@Param("uid") Integer uid, @Param("vid") Integer vid);
}
